﻿// MIT License
// 开源地址：https://gitee.com/co1024/AbcMvc
// Copyright (c) 2021-2023 1024
// Abc.Mvc=Furion+EF+SqlSugar+Pear layui admin.

namespace Abc.Application.HtAdminServices;

/// <summary>
/// 邮件发送记录
///</summary>
public class HtEmailSendRecordInput
{
    #region 公共字段

    /// <summary>
    /// ID
    ///</summary>
    public long? Id { get; set; }

    ///// <summary>
    ///// 扩展字段
    /////</summary>
    //public string ExtensionData { get; set; }
    ///// <summary>
    ///// 创建用户ID
    /////</summary>
    //public long? CreatorUserId { get; set; }
    ///// <summary>
    ///// 创建用户
    /////</summary>
    //public string CreatorUserName { get; set; }
    ///// <summary>
    ///// 创建时间
    /////</summary>
    //public DateTimeOffset CreationTime { get; set; }
    ///// <summary>
    ///// 更新用户ID
    /////</summary>
    //public long? UpdateUserId { get; set; }
    ///// <summary>
    ///// 更新用户
    /////</summary>
    //public string UpdateUserName { get; set; }
    ///// <summary>
    ///// 更新时间
    /////</summary>
    //public DateTimeOffset? UpdateTime { get; set; }
    ///// <summary>
    ///// 默认假删除
    /////</summary>
    //public bool IsDeleted { get; set; }
    ///// <summary>
    ///// 删除用户ID
    /////</summary>
    //public long? DeletedUserId { get; set; }
    ///// <summary>
    ///// 删除用户
    /////</summary>
    //public string DeletedUserName { get; set; }
    ///// <summary>
    ///// 删除时间
    /////</summary>
    //public DateTimeOffset? DeletedTime { get; set; }

    #endregion 公共字段

    /// <summary>
    /// 邮件模板类型
    ///</summary>
    public int TemplateType { get; set; }

    /// <summary>
    /// 主题
    ///</summary>
    public string Subject { get; set; }

    /// <summary>
    /// 内容
    ///</summary>
    public string Content { get; set; }

    /// <summary>
    /// 邮件发送名称
    ///</summary>
    public string SenderName { get; set; }

    /// <summary>
    /// 邮件发送账号
    ///</summary>
    public string SenderEmail { get; set; }

    /// <summary>
    /// 收件人
    ///</summary>
    public string ReceiveName { get; set; }

    /// <summary>
    /// 收件邮箱
    ///</summary>
    public string ReceiveEmail { get; set; }

    /// <summary>
    /// 邮件发送状态
    ///</summary>
    public int State { get; set; }

    /// <summary>
    /// 发送结果
    ///</summary>
    public string SendResult { get; set; }

    /// <summary>
    /// 发送次数
    ///</summary>
    public int SendNum { get; set; }

    /// <summary>
    /// 最大发送次数
    ///</summary>
    public int SendMaxNum { get; set; }

    /// <summary>
    /// 验证码
    ///</summary>
    public string VerCode { get; set; }

    /// <summary>
    /// 是否使用
    ///</summary>
    public bool IsUse { get; set; }

    /// <summary>
    /// 过期时间
    ///</summary>
    public DateTimeOffset? ExpireTime { get; set; }

    /// <summary>
    /// 关联ID
    ///</summary>
    public long SourceDataId { get; set; }

    /// <summary>
    /// 来源数据表
    ///</summary>
    public string SourceDataTable { get; set; }

    /// <summary>
    /// 是否验证码
    /// </summary>
    public bool IsVerCode { get; set; }
}